import numpy as np
import cv2
from matplotlib import pyplot as plt
img1 = cv2.imread('queryImage.png', 0)
img2 = cv2.iread('trainImage.png', 0)
sift = cv2.xfeatures2d.SIFT_create()
kp1, des1 = sift.detectAndCompute(img1,None)
kp2, des2 = sift.detectAndCompute(img2,None)
print(len(kp1), len(kp2))